﻿using System;
using System.Collections.Generic;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;

namespace InspectionMAC.Forms
{
    public partial class DataCollect : Form
    {
        /// <summary>
        /// 解决页面频繁刷新时界面闪烁问题
        /// </summary>
        protected override CreateParams CreateParams
        {
            get
            {
                CreateParams cp = base.CreateParams;
                cp.ExStyle |= 0x02000000;
                return cp;
            }
        }
        //添加类
        public partial class MyPanel : Panel
        {
            protected override Point ScrollToControl(Control activeControl)
            {
                return this.AutoScrollPosition;
            }
        }
    }
}
